package cn.tedu.store.entity.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel(value = "医院短信")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HospitalSmsDto implements Serializable {

    private static final long serialVersionUID = 5431453640102229847L;

    @ApiModelProperty(value = "医院ID")
    @NotNull(message = "医院ID不能为空")
    private Long hospitalId;

    @ApiModelProperty(value = "发送短信类型(1:检查,2:检验,3:一日清单,4:修改就诊卡手机号码，7住院余额查询，8病历邮寄校验)")
    private Integer type;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "短信内容")
    private String content;
    @ApiModelProperty(value = "短信验证码")
    private String code;

    public HospitalSmsDto(Long hospitalId, String phone, String content) {
        this.hospitalId = hospitalId;
        this.phone = phone;
        this.content = content;
    }
}
